<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*,java.text.*"%>
    <%@page import="dao.*" %>
    <jsp:useBean id="dao" class="dao.GoodUtil" scope="request"/>
	<jsp:include page="heading2.jsp"></jsp:include>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<style type="text/css">
	.div1{
	column-width:200px;
	-webkit-column-width:250px;
	column-gap:5px;
	-webkit-column-gap:5px;
	width:100%;
	
	
}
.div1 div{
	width:300px;
	margin:5px 0;
}
.div1 a{
	
	text-decoration:none;
}


</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>全部商品</title>
</head>
<body>
	<div class="div1">
	<%
	List list=dao.getGoods();
	Goods good=null;
	for(int i=0;i<list.size();i++){
		good=(Goods)list.get(i);	                             %>
		<div><img src="<%=request.getContextPath()%>/images/<%=good.getImage()%>">
	    <a href="servlet/DoDeteteGood?id=<%=good.getId() %>">删除</a></div>
	<% 
	}
	%>
	
    
</div>

</body>
</html>